package com.woniu.his.dao;

import com.woniu.his.entity.RegistrationInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TATO
 * @since 2019-11-25
 */
public interface RegistrationInfoMapper extends BaseMapper<RegistrationInfo> {


    List<HashMap> queryAll();

    @Update("update registration_info set status = 1 where registration_id = #{registrationId};")
    int updateRegStatus(String registrationId);

    @Select("select * from registration_info where status = 1;")
    List<RegistrationInfo> queryRegis();
}
